<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/
?>

<?php
include(DIR_WS_MODULES . FILENAME_YOUR_RECENT_HISTORY);
echo $yrh;
?>

</div> <!-- bodyContent //-->

<?php
// BOF: Store Mode
// Hide left column if not to show
  if (((COLUMN_LEFT_OFF == 'false') && (strstr($PHP_SELF,MAINTENANCE_FILENAME))) || (!strstr($PHP_SELF,MAINTENANCE_FILENAME))) {
    if ($oscTemplate->hasBlocks('boxes_column_left')) {
?>

<div id="columnLeft" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?> pull_<?php echo $oscTemplate->getGridContentWidth(); ?>">
  <?php echo $oscTemplate->getBlocks('boxes_column_left'); ?>
</div>

<?php
    }
  }

// Hide right column if not to show
  if (((COLUMN_RIGHT_OFF == 'false') && (strstr($PHP_SELF,MAINTENANCE_FILENAME))) || (!strstr($PHP_SELF,MAINTENANCE_FILENAME))) {
    if ($oscTemplate->hasBlocks('boxes_column_right')) {
?>

<div id="columnRight" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?>">
  <?php echo $oscTemplate->getBlocks('boxes_column_right'); ?>
</div>

<?php
    }
  }

  // Hide footer.php if not to show
  if (((FOOTER_OFF == 'false') && (strstr($PHP_SELF,MAINTENANCE_FILENAME))) || (!strstr($PHP_SELF,MAINTENANCE_FILENAME))) {
    require(DIR_WS_INCLUDES . 'footer.php');
  }
// EOF: Store Mode
?>

<?php
// Popup New Product In Cart

if (tep_session_is_registered('new_products_id_in_cart')) {
if (!strstr($_SERVER['PHP_SELF'], FILENAME_SHOPPING_CART)) {
$shopping_cart_popup = new bm_shopping_cart();
	?>
	<div id="new_product" title="<?php echo TEXT_PRODUCT_ADDED; ?>">
<?php echo $shopping_cart_popup->execute(true); ?>
<?php echo tep_draw_button(MODULE_BOXES_SHOPPING_CART_TITLE, 'cart', tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL')); ?>
<?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); ?>
	</div>
<script>
$(function() {
	$( "#new_product" ).dialog({ width: 500 });
});
</script>
<?php
}
	tep_session_unregister('new_products_id_in_cart');
}
?>

</div> <!-- bodyWrapper //-->

<?php echo $oscTemplate->getBlocks('footer_scripts'); ?>

</body>
</html>
